package sicnu.cs.ich.token.security.config;

import org.springframework.util.AntPathMatcher;

/**
 * @author CaiKe
 * @date 2021/12/26 20:10
 */
public abstract class BaseTokenSecurityConfig {

    public TokenSecurity tokenSecurity() {
        return new TokenSecurity(new AntPathMatcher())
                .antMatchers("/", "/auth/**", "/druid/**").permitAll()
//                .antMatchers("/v2/api-docs", "/swagger-resources/configuration/ui",
//                        "/swagger-resources", "/swagger-resources/configuration/security",
//                        "/swagger-ui.html", "/webjars/**").permitAll()
                        ;
    }

}